home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 10997 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  34 lines

  1. John Severinsen wrote:
  2.  
  3. > From my (admittedly rather limited) experience with UNIX pattern matching, the
  4. > AmigaDos system is more powerful (I suggest you read your manuals).  You have
  5. > the following wildcards in AmigaDOS:
  6. > #    - Match any number the following character
  7. > ?    - Match any single character
  8. > ()   - Group things together
  9. > |    - Like a logical OR
  10. > []   - Character ranging
  11. > ~    - Like a logical NOT
  12. > %    - Match the NULL string
  13. > I think that's all but with these I have never come across anything that can't
  14. > be specifically matched.
  15.  
  16. And, in addition, these pattern matching operations are available to any
  17. application for any purpose, not just for filenames.  By accessing a single 
  18. function in the dos.library DLL, one could easily implement a regexp string 
  19. search feature in a text editor or database application.
  20.  
  21. As the operating system supplies a standard syntax for pattern matching, 
  22. user is not forced to learn numerous propiertary syntaxes.  Even in UN*X 
  23. (and variants) there are at least two standards: shell wildcards (* and ?) 
  24. and "grep" regexp.  Also unfortunately, almost every implementation varies 
  25. a bit from the other.
  26.  
  27. -- 
  28.       Arttu KΣrpinlehto
  29. /////////////////////////////
  30. mailto:karttu@muncca.fi
  31. http://www.muncca.fi/~karttu/
  32.